<section id="notice" class="ml-24 mr-24">
  <hl-page-header title="园区服务">
    <hl-button v-if="quanxian.indexOf('c246') > -1" @on-click="header_create_edit('add')" type="outline">新建服务</hl-button>
  </hl-page-header>
  <!-- //搜索部分 -->
  <div class="clearfix mt-15 search-container-house border-b pb-10">
    <div class="pull-left">
      <p class="color-cfcfcf">信息搜索</p>
      <div class="search-text">
        <span class="icon-Gm-search"></span>
        <input type="text" class="" v-model="keyword" placeholder="发布标题" />
      </div>
    </div>
    <div class="pull-left ml-24" style="margin-right: 150px;" v-if="flag">
      <p class="color-cfcfcf">服务类型</p>
      <hl-select :data="modulesList" v-model="module_code" width="140" @on-change="eventModule"></hl-select>
    </div>
    <div class="pull-left ml-24">
      <p style="color:#fff;">/</p>
      <hl-button @on-click="search" size="mini">查询</hl-button>
      <hl-button @on-click="reset" size="mini">重置</hl-button>
    </div>
  </div>

  <!-- //主体列表 -->
  <div class="house-sharing-list clearfix">
    <div class="house-left" style="width:100%">
      <div class="house-scroll">
        <div class="house-title">
          <div class="dy-flex">
            <div class="dy-fx-1">序</div>
            <div class="dy-fx-2">服务名称</div>
            <div class="dy-fx-2">服务类型</div>
            <div class="dy-fx-3 cursor" @click="createTime">创建时间
              <span :class="{'icon-Gm-sort-default': orders == '#' || columns == 'UT', 'icon-Gm-sort-ascending': orders == 'A' && columns == 'CT', 'icon-Gm-sort-descending': orders == 'D' && columns == 'CT'}">
                                <span class="path1"></span><span class="path2"></span>
              </span>
            </div>
            <div class="dy-fx-3 cursor" @click="updateTime">最后更新时间
              <span :class="{'icon-Gm-sort-default': (orders == '#') || columns == 'CT', 'icon-Gm-sort-ascending': orders == 'A' && columns == 'UT', 'icon-Gm-sort-descending': orders == 'D' && columns == 'UT'}">
                                <span class="path1"></span><span class="path2"></span>
              </span>
            </div>
            <!-- <div class="dy-fx-1">状态</div> -->
            <div class="dy-fx-3">操作</div>
          </div>
        </div>
        <div class="dy-flex color-666 house-two-tone text-center" v-for="(item, index) in data.services">
          <div class="dy-fx-1">{{ index+1 }}</div>
          <div class="dy-fx-2 ellipsis-1">{{ item.serviceName}}</div>
          <div class="dy-fx-2">{{ item.codeName}}</div>
          <div class="dy-fx-3">{{ item.createTime | framtTime }}</div>
          <div class="dy-fx-3">{{ item.updateTime | framtTime }}</div>
          <!-- <div class="dy-fx-1">{{ item.valid == 'Y'?'启用':'停用'}}</div> -->
          <div class="dy-fx-3">
            <!-- <a href="javascript:;" class="mr-5" @click="disableItem(item.id,item.valid)">{{item.valid == 'Y'?'停用':'启用'}}</a> -->
            <a href="javascript:;" class="mr-5" @click="previewInfo(item.id)">预览</a>
            <a href="javascript:;" class="mr-5" @click="header_create_edit('edit',item.id)" v-if="quanxian.indexOf('c248') > -1">编辑</a>
            <a href="javascript:;" class="mr-5" @mouseenter="copyURL(item)" @click="copyss">复制URL</a>
            <a href="javascript:;" class="mr-5" @click="delItem(item.id)">删除</a>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="user-page ptb-10 clearfix">
    <div class="pull-left user-page-num">
      <span class="font-14">共<i>{{data.totalCount}}</i>条记录</span>
      <span>每页
			<hl-select :data="pageCounts" v-model="limit" width="80" @on-change="eventPage"></hl-select>

                条</span>
    </div>
    <div class="pull-right">
      <ul class="page" id="page"></ul>
    </div>
  </div>
  <input type="text" id="copyInput" style="opacity:0" readonly>
</section>

<script src="modules/workbench/scripts/park_service.js" charset="utf-8"></script>

<style media="screen">
  .flexbox {
    display: flex;
    justify-content: center;
  }

  .flexbox>span {
    display: flex;
    align-items: center;
    margin-top: -5px;
    font-size: 22px;
  }

  .active {
    color: #7F8FAA
  }

  h4 {
    margin: 0;
  }

  .color-cfcfcf {
    color: #cfcfcf;
  }

  .search-container-house {
    position: relative;
  }

  .search-container-house .icon-turn-right {
    display: inline-block;
    transform: translate(-5px, 0) rotate(90deg);
  }

  .search-text {
    background: rgba(249, 249, 249, 1);
    height: 34px;
    position: relative;
    width: 220px;
    border-radius: 4px;
  }

  .search-text span {
    position: absolute;
    left: 8px;
    top: 0;
    line-height: 34px;
  }

  .search-text input {
    width: 100%;
    height: 100%;
    background: none;
    border: 0;
    outline: medium;
    text-indent: 25px;
  }


  .house-sharing-text span {
    background: rgba(249, 249, 249, 1);
    box-shadow: none;
    border: 0;
    color: #666;
  }

  input::-webkit-input-placeholder {
    color: #999;
  }

  input:-moz-placeholder {
    color: #999;
  }

  input:-ms-input-placeholder {
    color: #999;
  }

  .house-sharing-list {
    margin: 10px 0 0;
    overflow: hidden;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(235, 235, 235, 1);
    display: flex;
  }

  .house-sharing-list .house-left {
    width: 796px;
    border-right: 1px solid rgba(235, 235, 235, 1);
    line-height: 40px;
  }

  .house-sharing-list .house-right {
    width: 180px;
    line-height: 40px;
  }

  .house-title {
    background: rgba(240, 242, 255, 1);
    color: rgba(165, 170, 183, 1);
  }

  .house-operate {
    text-align: center;
    font-size: 0;
    height: 40px;
  }

  .house-operate a {
    font-size: 14px;
    margin: 0 3px;
  }

  .house-two-tone:nth-child(2n+1),
  .house-operate:nth-child(2n+1) {
    background: rgba(249, 249, 249, 1);
  }
</style>
